package com.zdkj.subway.st.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.zdkj.common.core.exceltools.HeaderToColumn;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @ProjectName: zdkj
 * @Package: com.zdkj.subway.st.controller
 * @ClassName: SwStTicketReceiveController
 * @Description:
 * @Author: kangjian
 * @CreateDate: 2020/1/8 14:48
 * @Version: 1.0
 */
@Data
@TableName("sw_tk_ticket_destroy")
@ApiModel(value = "车票销毁记录表")
@EqualsAndHashCode(callSuper = true)
public class SwStTicketDestroy extends Model<SwStTicketDestroy> {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "唯一标识")
    private Integer id;

    @ApiModelProperty(value = "是否领用")
    private String isReceive;

    @ApiModelProperty(value = "出库信息ID")
    private Integer outputStockid;

    @HeaderToColumn(header = "出库单编号",index = 1)
    @ApiModelProperty(value = "出库单编号")
    private String outputStockno;

    @ApiModelProperty(value = "出库时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime outStorageTime;

    @ApiModelProperty(value = "销毁时间")
    @HeaderToColumn(header = "销毁时间",index = 2)
    private LocalDateTime destroyTime;

    @ApiModelProperty(value = "销毁票种")
    @HeaderToColumn(header = "销毁票种",index = 3)
    private String destroyCardType;

    @ApiModelProperty(value = "车票名称")
    @HeaderToColumn(header = "车票名称",index = 4)
    private String ticketName;

    @ApiModelProperty(value = "车票次数")

    private Integer ticketTimes;

    @ApiModelProperty(value="车票金额")
    private BigDecimal ticketPrice;

    @HeaderToColumn(header = "库存分区",index = 5)
    @ApiModelProperty(value = "库存分区")
    private String stockArea;

    @HeaderToColumn(header = "销毁数量",index = 6)
    @ApiModelProperty(value = "销毁数量")
    private Integer destroyNumber;

    @HeaderToColumn(header = "车票有效期",index = 7)
    @ApiModelProperty(value = "车票有效期")
    private String activeTime;

    @ApiModelProperty(value = "车票最晚启动日期")
    private LocalDateTime latestStartTime;

    @ApiModelProperty(value = "票卡卡号")
    private String ticketNo;

    @ApiModelProperty(value = "销毁人")
    private String destroyer;
    @ApiModelProperty(value = "销毁人工号")
    private String destroyerId;

    @ApiModelProperty(value = "附件")
    private String file;
    @ApiModelProperty(value = "图片")
    private String picture;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "创建人ID")
    private Integer creatorId;

    @ApiModelProperty(value = "创建人名称")
    private String creatorName;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime create_time;

    /**
     * 用于前端传开始结束日期
     */
    @TableField(exist = false)
    private List<String> dates1;


    @ApiModelProperty(value = "出库时间(前端)")
    @ExcelIgnore
    @TableField(exist = false)
    private String outStorageTimeDTO;

    @ApiModelProperty(value = "销毁时间(前端)")
    @ExcelIgnore
    @TableField(exist = false)
    private String destroyTimeDTO;


}